package cn.wsalix.weixin.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.SimpleRepository;
import cn.wsalix.weixin.entity.WxUser;

public interface WxUserRepository extends SimpleRepository<WxUser> {

	@Query(value = "select u from WxUser u where u.openid = :openId")
	public WxUser findByOpenIdOne(@Param("openId") String openId);
}
